
package org.eae.eldf.entity.sys;

import java.util.Collection;
import java.util.Locale;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;


public class Authorization  extends User{

	private static final long serialVersionUID = 1L;
	
	private Long operatorID;
	private String realName;
	private String operatorNo;
	private Locale preferredLocale;
	public static final String AUTHORIZATION_KEY = "_authorization_key";
	public static final String AUTHORIZATION_OPERATORID_KEY = "_authorization_operatorID_key";
	
	public Authorization(String username, String password, boolean enabled,
			boolean accountNonExpired, boolean credentialsNonExpired,
			boolean accountNonLocked,
			Collection<? extends GrantedAuthority> authorities,
			Long operatorID, String realName, String operatorNo) {
		super(username, password, enabled, accountNonExpired, credentialsNonExpired,
				accountNonLocked, authorities);
		this.operatorID = operatorID;
		this.realName = realName;
		this.operatorNo = operatorNo;
	}


	

	public Long getOperatorID() {
		return operatorID;
	}




	public void setOperatorID(Long operatorID) {
		this.operatorID = operatorID;
	}




	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public String getOperatorNo() {
		return operatorNo;
	}

	public void setOperatorNo(String operatorNo) {
		this.operatorNo = operatorNo;
	}


	public Locale getPreferredLocale() {
		return preferredLocale;
	}


	public void setPreferredLocale(Locale preferredLocale) {
		this.preferredLocale = preferredLocale;
	}

	
}
